package com.baseLearn.learn.designPatterns.proxy.staticProxy;

/**
 * 被代理对象
 */
public class TomLawyer implements Person {
    private Person john;

    public Person help(Person person) {
        this.john = (John) person;
        return this;
    }

    /**
     * 我帮john发言
     */
    @Override
    public void talk() {
        System.out.println("我是john的律师，我帮他说话");
        john.talk();
    }
}
